﻿using SmartHotel.Dto;
using SmartHotel.Role.Dto;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Application.Services;

namespace SmartHotel.Menu
{
    public interface ISmartHotelAppUserRoleService : IApplicationService
    {
        /// <summary>
        /// 获取用户角色信息
        /// </summary>
        /// <returns></returns>
        Task<PageDto<UserRoleDto>> GetUserRolesAsync(int pageIndex ,int pageSize ,int userid);
        /// <summary>
        /// 用户设置角色
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        Task<ResultDto<CreateandUpdateUserRole>> CreateUserRoleAsync(CreateandUpdateUserRole model);
        /// <summary>
        /// 删除用户角色
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<ResultDto<int>> DeleteUserRoleAsync(int id);
        /// <summary>
        /// 修改用户角色
        /// </summary>
        /// <param name="id"></param>
        /// <param name="model"></param>
        /// <returns></returns>
        Task<ResultDto<CreateandUpdateUserRole>> UpdateUserRoleAsync(int id, CreateandUpdateUserRole model);
        /// <summary>
        /// 根据id查询用户角色
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<ResultDto<UserRoleDto>> GetUserRoleFindId(int id);
    }
}
